<?php
	include("../classes/bArray.class.inc");

	
	$n["a"] = "f lavor";
	$n["b"] = "e ither";
	$n["c"] = "d termine";
	
	$p["d"] = "c an't";
	$p["e"] = "b cause";
	$p["f"] = "a Man";
	
	$a = new bArray($n);
	
	$a->Merge($p)->sort(bArray::KEY, bArray::REVERSE);
	
//	$m = array("xml"=>array("@one"=>"1"));
	
	$m = array("xml"=>
		array("a"=>
			array("b"=>
				array("c"=>"This is one", 
						"d"=>"This is 2", 
						"e" => "3 works")), "@one"=>"1", "@two"=>"2", "@three"=>true));
	$b = new bArray($m);
	
	print_r($a);
	echo "<br />-----<br />";
	var_dump($b->asXml());
	echo htmlentities($b->asXml());
?>